#region using
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Dimok.Aspx.Manager.Lib;
using Dimok.User;
using Dimok.Data;
using Dimok.Data.Database;
using Data;
#endregion

namespace Dimok.Aspx.Manager.Underwriting {
	public partial class BuyersOrder : Page_AL {
		#region HTML Declarations
		protected HtmlGenericControl xmlConditions;
		protected HtmlGenericControl xmlConditionList;
		protected HtmlGenericControl xmlCreditInfo;
		protected HtmlSelect selSalesPersons;
		protected HtmlSelect selDealers;
		protected HtmlSelect selBreakdownCodes;
		#endregion
		protected void Page_Load(object sender, System.EventArgs e) {
			xmlLoanInfo.InnerHtml = xmlLoanInfoTIL.InnerHtml = uox.LoanInfo.GetXml();
			SQL.SELECT(selDealers,db,SQL.Dealers_V,"Name","ID");
			SQL.SELECT(selSalesPersons,uox.DealerSalesPersons((int)uox.LoanInfo.Row["DealerID"]),"Name","ID");
			SQL.SELECT(selBreakdownCodes,db,"SELECT Code FROM ts_BreakdownInfo","Code","Code");
			xmlConditions.InnerHtml = uox.CallBackConditions.GetXml();
			xmlConditionList.InnerHtml = uox.CallBackConditionList.GetXml();
			xmlCreditInfo.InnerHtml = uox.CreditInfo.GetXml();
			xmlPayments.InnerHtml = uox.LoanInfo.PaymentsSchedule().GetXml();
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e) {
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {    
		}
		#endregion
	}
}
